/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.tawriq.assignment2.question3.OCP.Correct.Config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.tawriq.assignment2.question3.OCP.Correct.Cat;
import za.ac.cput.tawriq.assignment2.question3.OCP.Correct.Pet;
import za.ac.cput.tawriq.assignment2.question3.OCP.Correct.Spadeable;

/**
 *
 * @author Tawriq
 */
@Configurable
public class Config {
    @Bean
    public Cat cat(){
        return new Cat();
    }
    
    @Bean
    public Pet pet(){
        return new Pet();
    }
    
    @Bean
    public Spadeable spadeable(){
        return new Spadeable() {

            @Override
            public boolean Spadeable(boolean nuted) {
                throw new UnsupportedOperationException("Not supported yet.");
            }
        };
    }
}
